import { createHtmlPlugin } from 'vite-plugin-html';
import type { PluginOption } from 'vite';
export default function createPluginHtml(env, isBuild) {
  const htmlPlugin: PluginOption[] = createHtmlPlugin({
    minify: isBuild,
    inject: {
      data: {
        ...env
      }
    }
  });
  return htmlPlugin;
}
